[INFO] cloning repository https://github.com/Learnedprawn/rust-shell
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Learnedprawn/rust-shell" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLearnedprawn%2Frust-shell", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLearnedprawn%2Frust-shell'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 427f1d3dbf2465797614df9621a58df0f76eaf07
[INFO] fixing Learnedprawn/rust-shell against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLearnedprawn%2Frust-shell" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Learnedprawn/rust-shell
[INFO] finished tweaking git repo https://github.com/Learnedprawn/rust-shell
[INFO] tweaked toml for git repo https://github.com/Learnedprawn/rust-shell written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Learnedprawn/rust-shell on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Learnedprawn/rust-shell already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rustyline-derive v0.11.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 3e4deffa75645005a37398b5c9990f3ae64045a8fe7933aeda315b8f6b46f91f
[INFO] running `Command { std: "docker" "start" "3e4deffa75645005a37398b5c9990f3ae64045a8fe7933aeda315b8f6b46f91f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3e4deffa75645005a37398b5c9990f3ae64045a8fe7933aeda315b8f6b46f91f" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3e4deffa75645005a37398b5c9990f3ae64045a8fe7933aeda315b8f6b46f91f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3e4deffa75645005a37398b5c9990f3ae64045a8fe7933aeda315b8f6b46f91f" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.178
[INFO] [stderr]    Compiling rustix v1.1.2
[INFO] [stderr]     Checking endian-type v0.1.2
[INFO] [stderr]    Compiling nix v0.30.1
[INFO] [stderr]     Checking nibble_vec v0.1.0
[INFO] [stderr]     Checking home v0.5.12
[INFO] [stderr]     Checking is_executable v1.0.5
[INFO] [stderr]    Compiling syn v2.0.87
[INFO] [stderr]     Checking radix_trie v0.2.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]    Compiling rustyline-derive v0.11.1
[INFO] [stderr]     Checking fd-lock v4.0.4
[INFO] [stderr]     Checking thiserror v1.0.63
[INFO] [stderr]     Checking rustyline v17.0.2
[INFO] [stderr]     Checking codecrafters-shell v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find value `command` in this scope
[INFO] [stdout]    --> src/main.rs:204:51
[INFO] [stdout]     |
[INFO] [stdout] 204 |                 print!("{}: command not found\n", command.trim());
[INFO] [stdout]     |                                                   ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: `match` arm with no body
[INFO] [stdout]    --> src/main.rs:207:5
[INFO] [stdout]     |
[INFO] [stdout] 207 |     true
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: add a body after the pattern
[INFO] [stdout]     |
[INFO] [stdout] 207 |     true => { todo!() }
[INFO] [stdout]     |          ++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `command` in this scope
[INFO] [stdout]    --> src/main.rs:204:51
[INFO] [stdout]     |
[INFO] [stdout] 204 |                 print!("{}: command not found\n", command.trim());
[INFO] [stdout]     |                                                   ^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: `match` arm with no body
[INFO] [stdout]    --> src/main.rs:207:5
[INFO] [stdout]     |
[INFO] [stdout] 207 |     true
[INFO] [stdout]     |     ^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: add a body after the pattern
[INFO] [stdout]     |
[INFO] [stdout] 207 |     true => { todo!() }
[INFO] [stdout]     |          ++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 1 argument was supplied
[INFO] [stdout]    --> src/main.rs:202:11
[INFO] [stdout]     |
[INFO] [stdout] 202 |     match find_file_and_execute(input_vec.clone()) {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^------------------- two arguments of type `Option<std::process::Stdio>` and `Option<std::process::Stdio>` are missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `Vec<String>`, found `Vec<Vec<String>>`
[INFO] [stdout]    --> src/main.rs:202:33
[INFO] [stdout]     |
[INFO] [stdout] 202 |     match find_file_and_execute(input_vec.clone()) {
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: expected struct `Vec<String>`
[INFO] [stdout]                found struct `Vec<Vec<String>>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/main.rs:79:8
[INFO] [stdout]     |
[INFO] [stdout]  79 | pub fn find_file_and_execute(
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  80 |     input: Vec<String>,
[INFO] [stdout]     |     ------------------
[INFO] [stdout]  81 |     stdin: Option<Stdio>,
[INFO] [stdout]     |     --------------------
[INFO] [stdout]  82 |     stdout: Option<Stdio>,
[INFO] [stdout]     |     ---------------------
[INFO] [stdout] help: provide the arguments
[INFO] [stdout]     |
[INFO] [stdout] 202 -     match find_file_and_execute(input_vec.clone()) {
[INFO] [stdout] 202 +     match find_file_and_execute(/* Vec<String> */, /* Option<std::process::Stdio> */, /* Option<std::process::Stdio> */) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:207:5
[INFO] [stdout]     |
[INFO] [stdout] 202 |     match find_file_and_execute(input_vec.clone()) {
[INFO] [stdout]     |           ---------------------------------------- this expression has type `Result<Option<Child>, ()>`
[INFO] [stdout] ...
[INFO] [stdout] 207 |     true
[INFO] [stdout]     |     ^^^^ expected `Result<Option<Child>, ()>`, found `bool`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Result<Option<Child>, ()>`
[INFO] [stdout]                found type `bool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 3 arguments but 1 argument was supplied
[INFO] [stdout]    --> src/main.rs:202:11
[INFO] [stdout]     |
[INFO] [stdout] 202 |     match find_file_and_execute(input_vec.clone()) {
[INFO] [stdout]     |           ^^^^^^^^^^^^^^^^^^^^^------------------- two arguments of type `Option<std::process::Stdio>` and `Option<std::process::Stdio>` are missing
[INFO] [stdout]     |
[INFO] [stdout] note: expected `Vec<String>`, found `Vec<Vec<String>>`
[INFO] [stdout]    --> src/main.rs:202:33
[INFO] [stdout]     |
[INFO] [stdout] 202 |     match find_file_and_execute(input_vec.clone()) {
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: expected struct `Vec<String>`
[INFO] [stdout]                found struct `Vec<Vec<String>>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/main.rs:79:8
[INFO] [stdout]     |
[INFO] [stdout]  79 | pub fn find_file_and_execute(
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]  80 |     input: Vec<String>,
[INFO] [stdout]     |     ------------------
[INFO] [stdout]  81 |     stdin: Option<Stdio>,
[INFO] [stdout]     |     --------------------
[INFO] [stdout]  82 |     stdout: Option<Stdio>,
[INFO] [stdout]     |     ---------------------
[INFO] [stdout] help: provide the arguments
[INFO] [stdout]     |
[INFO] [stdout] 202 -     match find_file_and_execute(input_vec.clone()) {
[INFO] [stdout] 202 +     match find_file_and_execute(/* Vec<String> */, /* Option<std::process::Stdio> */, /* Option<std::process::Stdio> */) {
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:207:5
[INFO] [stdout]     |
[INFO] [stdout] 202 |     match find_file_and_execute(input_vec.clone()) {
[INFO] [stdout]     |           ---------------------------------------- this expression has type `Result<Option<Child>, ()>`
[INFO] [stdout] ...
[INFO] [stdout] 207 |     true
[INFO] [stdout]     |     ^^^^ expected `Result<Option<Child>, ()>`, found `bool`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected enum `Result<Option<Child>, ()>`
[INFO] [stdout]                found type `bool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:203:23
[INFO] [stdout]     |
[INFO] [stdout] 203 |               Err(_) => {
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 204 | |                 print!("{}: command not found\n", command.trim());
[INFO] [stdout] 205 | |             }
[INFO] [stdout]     | |_____________^ expected `bool`, found `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:203:23
[INFO] [stdout]     |
[INFO] [stdout] 203 |               Err(_) => {
[INFO] [stdout]     |  _______________________^
[INFO] [stdout] 204 | |                 print!("{}: command not found\n", command.trim());
[INFO] [stdout] 205 | |             }
[INFO] [stdout]     | |_____________^ expected `bool`, found `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:206:18
[INFO] [stdout]     |
[INFO] [stdout] 206 |             _ => {}
[INFO] [stdout]     |                  ^^ expected `bool`, found `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:206:18
[INFO] [stdout]     |
[INFO] [stdout] 206 |             _ => {}
[INFO] [stdout]     |                  ^^ expected `bool`, found `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `str::FromStr`
[INFO] [stdout]   --> src/main.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     str::FromStr,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `str::FromStr`
[INFO] [stdout]   --> src/main.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 |     str::FromStr,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/parser.rs:177:9
[INFO] [stdout]     |
[INFO] [stdout] 177 |     let mut piped = line.contains("|");
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/parser.rs:177:9
[INFO] [stdout]     |
[INFO] [stdout] 177 |     let mut piped = line.contains("|");
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `input`
[INFO] [stdout]   --> src/main.rs:92:23
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 (Some(input), Some(output)) => {
[INFO] [stdout]    |                       ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `output`
[INFO] [stdout]   --> src/main.rs:92:36
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 (Some(input), Some(output)) => {
[INFO] [stdout]    |                                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `input`
[INFO] [stdout]   --> src/main.rs:92:23
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 (Some(input), Some(output)) => {
[INFO] [stdout]    |                       ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `output`
[INFO] [stdout]   --> src/main.rs:92:36
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 (Some(input), Some(output)) => {
[INFO] [stdout]    |                                    ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `codecrafters-shell` (bin "codecrafters-shell" test) due to 6 previous errors; 4 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `codecrafters-shell` (bin "codecrafters-shell") due to 6 previous errors; 4 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "3e4deffa75645005a37398b5c9990f3ae64045a8fe7933aeda315b8f6b46f91f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3e4deffa75645005a37398b5c9990f3ae64045a8fe7933aeda315b8f6b46f91f", kill_on_drop: false }`
[INFO] [stdout] 3e4deffa75645005a37398b5c9990f3ae64045a8fe7933aeda315b8f6b46f91f
